// pages/notiveDetail/notiveDetail.js
var WxParse = require("../../assets/wxParse/wxParse.js");
import axios from "../../http/axios.js";
import {
  apiGetNoticeDetail
} from "../../http/server.js";
Page({
  data: {
    nav: "<div>我叫贾伟<div>"
  },

  onLoad: function(options) {
    var noticeId = options.noticeId;
    this.getNodeticeDetail(noticeId);

  },

  onReady: function() {

  },

  onShow: function() {

  },
  getNodeticeDetail: function(noticeId) {
    var that = this;
    axios({
      url: apiGetNoticeDetail + `/${noticeId}`
    }).then(res => {
      WxParse.wxParse("article", "html", res.content, that, 0)
    })
  },
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function() {

  }
})